package com.ruoyi.archive.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.archive.domain.SRetiredRedArmy;

/**
 * 退伍红军老战士信息Mapper接口
 * 
 * @author Allen
 * @date 2021-09-29
 */
public interface SRetiredRedArmyMapper extends BaseMapper<SRetiredRedArmy>
{
    /**
     * 查询退伍红军老战士信息
     * 
     * @param id 退伍红军老战士信息主键
     * @return 退伍红军老战士信息
     */
    public SRetiredRedArmy selectSRetiredRedArmyById(Long id);

    /**
     * 查询退伍红军老战士信息列表
     * 
     * @param sRetiredRedArmy 退伍红军老战士信息
     * @return 退伍红军老战士信息集合
     */
    public List<SRetiredRedArmy> selectSRetiredRedArmyList(SRetiredRedArmy sRetiredRedArmy);

    /**
     * 新增退伍红军老战士信息
     * 
     * @param sRetiredRedArmy 退伍红军老战士信息
     * @return 结果
     */
    public int insertSRetiredRedArmy(SRetiredRedArmy sRetiredRedArmy);

    /**
     * 修改退伍红军老战士信息
     * 
     * @param sRetiredRedArmy 退伍红军老战士信息
     * @return 结果
     */
    public int updateSRetiredRedArmy(SRetiredRedArmy sRetiredRedArmy);

    /**
     * 删除退伍红军老战士信息
     * 
     * @param id 退伍红军老战士信息主键
     * @return 结果
     */
    public int deleteSRetiredRedArmyById(Long id);

    /**
     * 批量删除退伍红军老战士信息
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSRetiredRedArmyByIds(Long[] ids);
}
